package com.org.service.facotry;

import com.org.constant.AgreementTypeEnum;
import com.org.constant.Constant;
import com.org.model.AgreementDetail;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.ModelAndView;

/**
 * 多协议
 */
@Component("multi")
public class MultiAgreementDetailService implements AgreementService {
    @Override
    public ModelAndView getAgreement(AgreementDetail agreementDetail) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName(AgreementTypeEnum.MULTI.getType());
        modelAndView.addObject(Constant.CONTENT, agreementDetail.getContent());
        return modelAndView;
    }
}
